﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Department/Master.Master" AutoEventWireup="true" CodeBehind="ViewOrderDetails.aspx.cs" Inherits="logicunivesityinventorystore.Department.ViewOrderDetails" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">


   
</asp:Content>
<asp:Content ID="Content2" runat="server" 
    contentplaceholderid="ContentPlaceHolder2">
        <h1>View Order Details</h1>
         <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
        <br />
        <br />
         <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
    <asp:Label ID="lblOrderList" runat="server" Text="Order List:"></asp:Label>
            <br />
            <center>
                <asp:GridView ID="gvOrderList" runat="server" AutoGenerateColumns="False" 
                     onrowdatabound="gdOrderList_RowDataBound">
                    <Columns>
                        <asp:TemplateField HeaderText="Requisition Form No.">
                            <ItemTemplate>
                                <asp:LinkButton ID="lbtnFormID" runat="server" Text='<%# Eval("FormID") %>' 
                                    onclick="lbtnFormID_Click"></asp:LinkButton>
                                    <cc1:ModalPopupExtender ID="ModalPopupExtender1" BackgroundCssClass="modalBackground"
                runat="server" CancelControlID="btnCancel" OkControlID="btnOkay" TargetControlID="lbtnFormID"
                PopupControlID="Panel1" Drag="true" PopupDragHandleControlID="PopupHeader" OnOkScript="NewExpanseOkay();" BehaviorID="EditModalPopup">
                 </cc1:ModalPopupExtender>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="Date" DataField="Date" />
                        <asp:BoundField HeaderText="Employee Name" DataField="EmployeeName" />
                    </Columns>
                </asp:GridView>

               

                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                    SelectMethod="FindByApprove" 
                    TypeName="BusinessLogicLayer.RequisitionFacade" 
                    OldValuesParameterFormatString="original_{0}">
                    <SelectParameters>
                        <asp:ProfileParameter Name="employeeID" PropertyName="UserName" Type="String" />
                    </SelectParameters>
                </asp:ObjectDataSource>
                 <br />
                <br />
                 
   
                
            </center>
              <div class="popup_Buttons" style="display: none">
                
                 <input id="btnOkay" value="Done" type="button" />
                <input id="btnCancel" value="Cancel" type="button" />
            </div>
            <div id="Panel1" style="display: none; width:370px;" class="modalPopup">
                <iframe id="frameeditexpanse" frameborder="0" src="OrderDetail.aspx" height="270" scrolling="auto" width="370"; 
                    ></iframe>
            </div>
            </ContentTemplate>
             </asp:UpdatePanel>
            </asp:Content>

<asp:Content ID="Content4" runat="server" 
    contentplaceholderid="ContentPlaceHolder5">
         
                </asp:Content>


<asp:Content ID="Content5" runat="server" 
    contentplaceholderid="ContentPlaceHolder3">

                </asp:Content>



